Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce casts for LEAD/LAG #9468

Merged
merged 4 commits into from
Mar 6, 2024
Merged

Reduce casts for LEAD/LAG #9468

merged 4 commits into from
Mar 6, 2024

Conversation

comphead
Copy link
Contributor

@comphead comphead commented Mar 5, 2024

Which issue does this PR close?

Closes #.

Rationale for this change

Reduce number of unnecessary casts from i64 to usize and vice versa

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@comphead comphead requested a review from mustafasrepo March 5, 2024 16:03
@github-actions github-actions bot added physical-expr Physical Expressions sqllogictest SQL Logic Tests (.slt) labels Mar 5, 2024
----RepartitionExec: partitioning=Hash([i@0], 4), input_partitions=4
------AggregateExec: mode=Partial, gby=[i@0 as i], aggr=[]
--------MemoryExec: partitions=4, partition_sizes=[1, 2, 1, 1]
#query TT
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is failing on my local, not sure if its my PR, as there is no window in the plan

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions github-actions bot removed the sqllogictest SQL Logic Tests (.slt) label Mar 5, 2024
@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Mar 5, 2024
@@ -400,7 +400,7 @@ AggregateExec: mode=FinalPartitioned, gby=[i@0 as i], aggr=[]
--CoalesceBatchesExec: target_batch_size=8192
----RepartitionExec: partitioning=Hash([i@0], 4), input_partitions=4
------AggregateExec: mode=Partial, gby=[i@0 as i], aggr=[]
--------MemoryExec: partitions=4, partition_sizes=[1, 2, 1, 1]
--------MemoryExec: partitions=4, partition_sizes=[1, 1, 2, 1]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont see how the PR can affect the partition size distribution as the test plan doesn't have window. More likely the test is odd

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions github-actions bot removed the sqllogictest SQL Logic Tests (.slt) label Mar 5, 2024
Copy link
Contributor

@mustafasrepo mustafasrepo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @comphead. This PR is LGTM!.

@comphead comphead merged commit f3836a5 into apache:main Mar 6, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
physical-expr Physical Expressions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants